package action_行为型.mediator_pattern_中介模式;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: hihi
 * @Date: 2020/07/08/15:28
 * @Description:
 */
public class User {
	private String name;

	public User(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void sendMessage(String message) {
		Chatroom.showMessage(this, message);
	}
}
